import request from '@/utils/request'

// 查询水脉分析记录列表
export function listWaterRecord(query) {
  return request({
    url: '/baseinfo/waterRecord/list',
    method: 'get',
    params: query
  })
}

// 查询水脉分析记录详细
export function getWaterRecord(id) {
  return request({
    url: '/baseinfo/waterRecord/' + id,
    method: 'get'
  })
}

// 新增水脉分析记录
export function addWaterRecord(data) {
  return request({
    url: '/baseinfo/waterRecord',
    method: 'post',
    data: data
  })
}

// 修改水脉分析记录
export function updateWaterRecord(data) {
  return request({
    url: '/baseinfo/waterRecord',
    method: 'put',
    data: data
  })
}

// 删除水脉分析记录
export function delWaterRecord(id) {
  return request({
    url: '/baseinfo/waterRecord/' + id,
    method: 'delete'
  })
}
